4 Dimensional Vector Class
Methods
Alias for {@link vec4.subtract}
Alias for {@link vec4.multiply}
Alias for {@link vec4.divide}
Alias for {@link vec4.distance}
Alias for {@link vec4.squaredDistance}
Alias for {@link vec4.length}
Alias for {@link vec4.squaredLength}
(
Array
-
a
-
stride
-
offset
-
count
-
fn
-
[arg]
Perform some operation over an array of vec4s.
Parameters:
-
a
Arraythe array of vectors to iterate over
-
stride
NumberNumber of elements between the start of each vec4. If 0 assumes tightly packed
-
offset
NumberNumber of elements to skip at the beginning of the array
-
count
NumberNumber of vec2s to iterate over. If 0 iterates over entire array
-
fn
FunctionFunction to call for each vector in the array
-
[arg]
Object optionaladditional argument to pass to fn
Returns:
Array:
a